Grails : Tag - select
This page last changed on Feb 27, 2006 by [email protected].
Tag - selectDescriptionHelper tag for creating HTML selects. Parameters
Examples// create a select from a range <g:select name="user.age" from="${18..65}" value="${age}" /> // create select from a list of companies // note the 'optionKey' is set to the id of each company element <g:select name="user.company.id" from="${Company.list()}" value="${user?.company.id}" optionKey="id" /> Example as a method call in GSP only: ${select(from:aList,value:aValue)} |
![]() |
Document generated by Confluence on Mar 29, 2006 08:46 |